define(function(require, exports){
	var pubjs = require('pubjs');
	// var $ = require('jquery');
	var grid  = require('@base/highGrid');
	var util = require('util');

	var Customer = grid.base.extend({
		init: function(config){
			config = pubjs.conf(0, config, {
					url: 'user/listCost',
					// url: 'user/list',
					urlManualDeny: 'user/manualDeny',
					reqType: 'websocket',
					cols: [
						// {name: '_id', text: LANG('ID'), sort: true},
						{type: 'id'},
						{name:'date', text:LANG('日期'),width:200,align:'center'}
					],
					metrics:[
						{name:'true_cost', text:LANG('价格3'), render: 'renderCost'},
						{name:'proxy_cost', text:LANG('价格2'), render: 'renderCost'},
						{name:'cost', text:LANG('价格1'), render: 'renderCost'}
					],
					key: 'UserId',
					subFilter: 'subFilter',
					hasSelect: false,
					hasTab: false,
					hasSwitch: false,
					hasAmount: false,
					hasSearch: false,
					hasExport: false,
					hasRefresh: false
				}
			);

			this.Super('init', arguments);
		},
		renderCost: function(i, val, row, col){
			val = util.round0(val,2);
			val = util.numberFormat(val);
			return '￥'+ val;
		}
	});
	exports.base = Customer;

});